/*
 * @Descripttion:
 * @version:
 * @Author: sueRimn
 * @Date: 2023-11-02 10:04:09
 * @LastEditors: sueRimn
 * @LastEditTime: 2023-11-13 11:06:50
 */
import http from "@/utils/http";

/**
 *
 * @param {*} data
 * @returns
 * <首页> & <人房管理>
 * 房屋数据统计
 */
export const getEstateStatisData = (data) => {
  return http({
    url: "/console/getEstateStatis",
    method: "POST",
    data,
  });
};

/**
 *
 * @param {*} data
 * @returns
 * <首页> & <人房管理>
 * 居民性别、年龄、身份占比统计
 */
export const getResidentData = (data) => {
  return http({
    url: "/console/site/data/statis/resident",
    method: "POST",
    data,
  });
};

/**
 *
 * @param {*} data
 * @returns
 * <首页>
 * 车辆出入概况
 */
export const getCarIOInfoData = (data) => {
  return http({
    url: "v6.5/IOT/Lane/AllCarInOutStatisticsByEstate",
    method: "POST",
    data,
  });
};

/**
 *
 * @param {*} data
 * @returns
 * <首页>
 * 设备数量统计（全部）
 */
export const getAllDeviceNumData = (data) => {
  return http({
    url: "/v6.5/IOT/Screen/AllDeviceNumCount",
    method: "GET",
    params: data,
  });
};

/**
 *
 * @param {*} data
 * @returns
 * <首页>
 * 设备预警事件数据统计（全部）
 */
export const getAllDeviceWarnNumData = (data) => {
  return http({
    url: "/v6.5/IOT/Screen/AllDeviceWarnCount",
    method: "GET",
    params: data,
  });
};

/**
 * 
 * @param {*} data 
 * @returns 
 * <首页>
 * 设备预警事件数据列表（全部 ）
 */
export const getAllDeviceWarnListData = (data) => {
  return http({
    url: "/v6.5/IOT/Screen/AllDeviceWarnList",
    method: "GET",
    params: data,
  });
};

/**
 *
 * @param {*} data
 * @returns
 * <首页>
 * 智能单兵统计
 */
export const getIntelligentDBData = (data) => {
  return http({
    url: "/console/xjDb/charts/xjCharts",
    method: "POST",
    data,
  });
};

/**
 *
 * @param {*} data
 * @returns
 * <人房管理>
 * 人员数据总览
 */
export const getPopulationData = (data) => {
  return http({
    url: "/console/family/statis",
    method: "POST",
    data,
  });
};

/**
 *
 * @param {*} data
 * @returns
 * <人房管理>
 * 人员流动曲线
 */
export const getmoveInOutData = (data) => {
  return http({
    url: "/console/family/moveInOut/statis",
    method: "POST",
    data,
  });
};

/**
 *
 * @param {*} data
 * @returns
 * <人房管理>
 * 房屋类型
 */
export const getHouseTypeData = (data) => {
  return http({
    url: "/console/getHouseStatisToRing",
    method: "POST",
    data,
  });
};

/**
 *
 * @param {*} data
 * @returns
 * <智慧安防>
 * 监控列表
 */
export const getMonitorListData = (data) => {
  return http({
    url: "/v6.5/IOT/Camera",
    method: "GET",
    params: data,
  });
};

/**
 *
 * @param {*} data
 * @returns
 * <智慧安防>
 * 监控详情
 */
export const getMonitorDetailsData = (data) => {
  return http({
    url: "/v6.5/IOT/Camera/1022",
    method: "GET",
    params: data,
  });
};

/**
 *
 * @param {*} data
 * @returns
 * <智慧安防>
 * 设备预警事件数据列表
 */
export const getWarnEventListData = (data) => {
  return http({
    url: "/v6.5/IOT/Screen/DeviceWarnList",
    method: "GET",
    params: data,
  });
};

/**
 *
 * @param {*} data
 * @returns
 * <智慧安防>
 * 设备预警事件数据统计
 */
export const getWarnEventStatisticsData = (data) => {
  return http({
    url: "/v6.5/IOT/Screen/DeviceWarnCount",
    method: "GET",
    params: data,
  });
};

/**
 *
 * @param {*} data
 * @returns
 * <智慧安防>
 * 门禁设备数量统计及列表
 */
export const getDoorGuardDeviceData = (data) => {
  return http({
    url: "/v6.5/IOT/DoorDevice/List",
    method: "GET",
    params: data,
  });
};

/**
 *
 * @param {*} data
 * @returns
 * <智慧安防>
 * 门禁通行记录
 */
export const getDoorGuardIORecordData = (data) => {
  return http({
    url: "/v6.5/IOT/DoorDevice/Record",
    method: "POST",
    data,
  });
};

/**
 *
 * @param {*} data
 * @returns
 * <智慧安防>
 * 巡更管理统计
 */
export const getpatrolStatisticsData = (data) => {
  return http({
    url: "/v6.5/IOT/Screen/GuardCount",
    method: "GET",
    params: data,
  });
};

/**
 *
 * @param {*} data
 * @returns
 * <智慧安防>
 * 巡更记录
 */
export const getpatrolRecordData = (data) => {
  return http({
    url: "/v6.5/IOT/Screen/GuardList",
    method: "GET",
    params: data,
  });
};
